package top.kangyaocoding.ecommerce.dao;

import org.apache.ibatis.annotations.Mapper;
import top.kangyaocoding.ecommerce.po.Users;

import java.util.List;

/**
 * 描述: 用户表数据访问接口
 *
 * @author K·Herbert
 * @since 2025-02-16 下午10:35
 */
@Mapper
public interface IUsersDao {

    Users findById(Long id);

    Users findByEmail(String email);

    List<Users> findUserList();

    void save(Users users);

    void deleteById(Long id);

    void deleteByEmail(String email);

    void update(Users users);

    void resetPassword(Users users);
}
